import Vue from 'vue'
import Router from 'vue-router'
import data1 from '@/components/data1'
import data2 from '@/components/data2'
import RegisterLogin from '@/components/RegisterLogin'
import upload from '@/components/upload'
import stu from '@/components/stu'
import student from '@/components/student'
import video from '@/components/video'
import my from '@/components/my'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/my', name: 'my', component: my },
    { path: '/video', name: 'video', component: video },
    { path: '/stu', name: 'stu', component: stu },
    { path: '/student', name: 'student', component: student },
    { path: '/data1', name: 'data1', component: data1 },
    { path: '/data2', name: 'data2', component: data2 },
    { path: '/upload', name: 'upload', component: upload },
    { path: '/', name: 'RegisterLogin', component: RegisterLogin },
  ]
})
